package com.wn.procurement.mapper;

import com.wn.entity.Material;
import com.wn.entity.Procurement;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 采购mapper
 */
@Repository
public interface ProcurementMapper {

    /**
     * 新增采购任务
     * @param procurement
     */
    void insert(Procurement procurement);

    /**
     * 修改采购任务
     * @param procurement
     */
    void update(Procurement procurement);

    /**
     * 全部采购任务
     * @return
     */
    List<Procurement> getAll();

    /**
     * 条件查询
     * @param procurement
     * @return
     */
    List<Procurement> getByCondition(Procurement procurement);
}
